#!/bin/bash
set -e

export TZ=UTC
export HOME=/remote/iosg/home/bot-hft
source ~/miniconda3/etc/profile.d/conda.sh
conda activate coin2_motion_env_migration

cd ~/jenkins/workspace/coin2_symbol_status_checker/coin

parallel -j 100 --joblog symbol_status_checker.log <<EOF
{% for (driver_files,result_file_dir) in command_paras -%}
{% for driver_file_dir in driver_files -%}
srun --job-name symbol_status_checker -N1 -n1 --cpus-per-task 1 bazel-out/k8-opt/bin/cc/appcoin2/support/feed/symbol_status_checker --driver={{driver_file_dir}} --output_file_path={{result_file_dir}}
{% endfor -%}
{% endfor -%}
EOF